import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import { StatisComponent } from './statis.component';
import { StatisListComponent } from './statis/list.component';

@NgModule({
    imports: [RouterModule.forChild([
        { path: '', redirectTo: 'statis', pathMatch: 'full'},
        {
            path: '',
            component: StatisComponent,
            children: [
                {
                    path: 'statis',
                    component: StatisListComponent,
                }
            ]
        }
    ])],
    exports: [RouterModule]
})
export class StatisRoutingModule { }
